import { Image, Text, View } from '@tarojs/components'
import React from 'react'
import style from './ToDayDataHeader.module.scss'
interface Props{
  title: string,
  src: string
}
const ToDayDataHeader: React.FC<Props> = ({ title, src }) => (
  <View className={style.todayCardHeader}>
    <Image src={src} className={style.icon} />
    <Text className={style.title}>{title}</Text>
  </View>
)
export default ToDayDataHeader

